package day04;

public class ForDemo {

    public static void main(String[] args) {

 /*       for (int i =1; i <=9 ; i++) {
            System.out.print(i+"*9="+i*9+"\t");
        }

        System.out.println();

        for (int i = 9; i >=1; i--) {
            System.out.print(i+"*9="+i*9+"\t");
        }

        System.out.println();

        for (int i = 1; i < 9; i+=2) {
            System.out.print(i+"*9="+i*9+"\t");
        }

        System.out.println();

        for (int i = 0; i < 5; i++) {
            System.out.println("行动是进步的阶梯。");
        }
 */
        int sum=0;
        for (int i = 1; i <=100 ; i++) {
            sum=sum+i;
        }
        System.out.println(sum);
    }
}
